package com.pswv2.backstage.more.wallet.account.details.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pswv2.backstage.more.wallet.account.details.service.AccountDetailsService;
import com.pswv2.bub.bsc.dao.po.AccountDetails;
import com.pswv2.util.ExtraSpringHibernateTemplate;

@Service
public class AccountDetailsImp implements AccountDetailsService {
	private static Class<?> poc = AccountDetails.class;
	@Autowired
	private ExtraSpringHibernateTemplate extraSpringHibernateTemplate;
	@Override
	public AccountDetails queryById(int id) {
		// TODO Auto-generated method stub
		return extraSpringHibernateTemplate.findFirstOneByPropEq(poc, "authenticationId", id);
	}
}